import React from 'react';
import { createFromIconfontCN } from '#/utils/antdIcons';
import { useStaticState } from '#/utils/trHooks';

export default ({ style = {}, id = 999 }) => {
  const MyIcon = useStaticState(
    createFromIconfontCN({
      scriptUrl: 'https://10.4.6.209:8084/typeface/style/weather/iconfont.js',
    }),
  );
  return <MyIcon type={`icon-a-${id}`} style={{ fontSize: '12px', ...style }} />;
};
